LassoScript Utility
Basics Browse Detail

[OS_Process->Close]

Tag Link [OS_Process->Close] Category OS Process
Type Member Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type None Security None
Implementation Sets Lasso 8.5

Description

[OS_Process->Close] closes Lasso's connection to the native process. Both the standard input and the standard output of the native process are closed. Most processes will exit when this tag is called. If the process should be left running then [OS_Process->Detach] should be used instead of this tag. This tag is called implicitly when the [OS_Process] object is destroyed at the end of a Lasso page.

Syntax

Var: 'myProcess' = (OS_Process: '/bin/cat');
$myProcess->(SetEncoding: 'iso-8859-1');
$myProcess->(Write: 'This is a test\n');
$myProcess->CloseWrite;
encode_html: $myProcess->ReadString;
$myProcess->Close;

Parameters

No Parameters Required.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.